import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Location } from '@angular/common';

@Component({
  selector: 'app-tutorial-editable-template',
  templateUrl: './tutorial-editable-template.component.html',
  styleUrls: ['./tutorial-editable-template.component.css']
})
export class TutorialEditableTemplateComponent implements OnInit {

  tutorialName: string;
  editAuth:boolean;
  constructor(private route: ActivatedRoute,
              private location : Location) { }

  ngOnInit(): void {

    this.tutorialName =  this.route.snapshot.queryParams["name"];
  }

  back(){
    this.location.back();
  }

}
